package cn.fayang.ymcc.dto;

import lombok.Data;

import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

@Data
public class RegisterDto {
    @Pattern(regexp = "^((13[0-9])|(14[0,1,4-9])|(15[0-3,5-9])|(16[2,5,6,7])|(17[0-8])|(18[0-9])|(19[0-3,5-9]))\\d{8}$",message = "手机号不合法")
    private String mobile;

    @Size(min=3,max = 6,message = "密码必须是3-6位")
    private String password;
    @Size(min=6,max = 6,message = "验证码必须是 6 位")
    private String smsCode;
    private Integer regChannel; //注册的渠道
}